import React, { Component } from 'react'
import Navbar from './Navbar'

export default class App extends Component {
    render() {
        var obj = {
            title: "测试",
            leftShow : false,
        }
        return (
            <div>
                <div>
                    <h2>首页</h2>
                    {/* 属性相同 */}
                    <Navbar title="首页" leftShow={false} />
                </div>
                <div>
                    <h2>列表</h2>
                    <Navbar title="列表"/>
                </div>
                <div>
                    <h2>购物车</h2>
                    <Navbar title="购物车"/>
                </div>
                <div>
                    <h2>测试属性相同</h2>
                    <Navbar {...obj}/>
                </div>
            </div>
        )
    }
}
